//
//  OrderGoodsModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/1.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class OrderGoodsModel: NSObject {

    var goods_name = "-999"
    var buyer_id = "-999"
    var goods_image_url = "-999"
    var store_name = "-999"
    var goods_num = "-999"
    var goods_pay_price = "-999"
    var goods_image = "-999"
    var order_id = "-999"
    var detail_url = "-999"
    var commis_rate = "-999"
    var gold_rate = "-999"
    var store_id = "-999"
    var goods_id = "-999"
    var goods_price = "-999"
    var gc_id = "-999"
    var goods_type = "-999"
    var promotions_id = "-999"
    var rec_id = "-999"
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["goods_name","buyer_id","goods_image_url","store_name","goods_num","goods_pay_price","goods_image","order_id","detail_url","commis_rate","gold_rate","store_id","goods_id","goods_price","gc_id","goods_type","promotions_id","rec_id"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
